﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace ClippingEditor
{
    /// <summary>
    /// Interaction logic for FieldView.xaml
    /// </summary>
    public partial class FieldView : UserControl
    {
        public FieldView()
        {
            InitializeComponent();
        }

        public bool MultiLine
        {
            get
            {
                if (this.tbx.TextWrapping == TextWrapping.Wrap)
                    return true;
                else
                    return false;
            
            }
            set
            {
                if (value)
                {
                    this.tbx.TextWrapping = TextWrapping.Wrap;
                    this.tbx.VerticalContentAlignment = System.Windows.VerticalAlignment.Top;
                }
                else
                {
                    this.tbx.TextWrapping = TextWrapping.NoWrap;
                    this.tbx.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
                }
            }
        }
    }
}
